package com.hsu.apibackend.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 每日签到表
 * @ClassName: DailyCheckIn
 * @author Hsu琛君珩
 * @date 2024-09-06
 * @apiNote
 * @Version: v1.0
 */
@TableName(value = "daily_check_in")
@Data
public class DailyCheckIn implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 签到表ID
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 签到人ID
     */
    private Long userId;

    /**
     * 描述
     */
    private String description;

    /**
     * 签到增加的积分数
     */
    private Integer addPoints;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;
}
